import * as types from 'store/modules/types'
// 监听全局滚动事件 传递给子组件
// export const scroll = ({commit}, top) => {
//   commit(types.SCROLL, top)
// }
// 设置header标题
export const setHeaderTitle = ({commit}, val) => {
  commit(types.SETHEADTITLE, val)
}
// 获取经纬度坐标
export const getLocation = ({commit},val)=>{
  commit(types.GET_LOCATION,val)
}
// 获取微信code
export const setWxCode = ({commit},val)=>{
  commit(types.GET_WX_CODE,val)
}
// 获取二维码返回值
export const setQcode = ({commit},val)=>{
  commit(types.SET_QCODE,val)
}
// 手机号码
export const setBindPhone = ({commit},val)=>{
  commit(types.SET_BIND_PHONE,val)
}
// 设置商户绑定状态
export const setShopBindStatus = ({commit},val)=>{
  commit(types.SET_SHOP_BIND_STATUS,val)
}
// 设置用户积分
export const setBp = ({commit},val)=>{
  commit(types.SET_BP,val);
}
